<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Welcome extends CI_Controller {
    
    function Welcome() {
        parent :: __construct();
        $this->load->model('pickup_model');
        
    }

    public function index() {
        //--Common Call ---//
        $data['recent_news'] = $this->commoncall->get_recent_news(5);
        $data['car_make'] = $this->pickup_model->get_car_makes();
        $data['car_body_type'] = $this->pickup_model->get_pickup(3);
        $data['car_budget'] = $this->pickup_model->get_pickup(7);
        $data['car_color'] = $this->pickup_model->get_pickup(8);
        $data['car_transmission'] = $this->pickup_model->get_pickup(2);
        
        $this->load->view('index',$data);
    }

}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */